-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add extensions to graphql span events on errors #12181
base: main
Are you sure you want to change the base?
Conversation
BenchmarksBenchmark execution time: 2025-02-10 19:31:36 Comparing candidate commit 2215d7d in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics. |
|
|
||
|
||
@snapshot(ignores=["meta.error.type", "meta.error.message", "meta.events"]) | ||
def test_graphql_fail(enable_graphql_resolvers): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicated from #12224, will be removed after that PR is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File will be removed from PR once #12224 is merged
Datadog ReportBranch report: ✅ 0 Failed, 130 Passed, 1378 Skipped, 5m 2.51s Total duration (35m 27.35s time saved) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed after #12224
error_extensions[field] = error.extensions[field] | ||
else: | ||
# q: could this be `None`? | ||
error_extensions[field] = str(error.extensions[field]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could error.extensions[field]
ever be None
?
b7fe47f
to
a84739d
Compare
246fa84
to
2215d7d
Compare
An extension to: feat: add span events on graphql error spans on 3.x
Add user-provided extensions according to RFC, update tests and add snapshots.
Note: some files / methods in the diff will be removed once #12224 is merged. Including these were necessary to allow tests to run.
Checklist
Reviewer Checklist